@import 'variable.less'; // 设置变量
.modal {
  .modal-dialog {
    position: absolute;
    left: 50%;
    top: 38%;
    transform: translate(-50%, -50%);
  }
  &.fade {
    .modal-dialog {
      transform: translate(-50%, -70%);
    }
  }
  &.in {
    .modal-dialog {
      transform: translate(-50%, -50%);
    }
  }
  .modal-header {
    button.close {
      transform: scale(1.3);
      &:hover {
        transition: all 0.3s;
        transform: scale(1.5);
      }
    }
  }
  .modal-body {
    text-align: center;
    font-size: 16px;
    line-height: 24px !important;
    max-height:500px;
    overflow: auto;
    #successModal {
      i {
        color: @greenColor;
      }
    }
    #errorModal {
      i {
        color: @redText;
      }
    }
    .messageIcon {
      margin-right: 2px;
    }
  }
  @media (min-width: 768px) {
    .modal-sm {
      width: 350px;
    }
  }
}